@import org.silkframework.workspace.activity.ProjectActivity
@import org.silkframework.workspace.activity.CachedActivity
@import scala.language.existentials

@(activity: ProjectActivity, showButtons: Boolean = false)

@activityControl(
  activity.project.name, None, activity.name,
  showProgressBar = true,
  showStartButton = showButtons,
  showRestartButton = showButtons && classOf[CachedActivity[_]].isAssignableFrom(activity.control.underlying.getClass),
  showConfigButton = showButtons && activity.config.nonEmpty
)
